#ifndef BUTTONGROUP_H
#define BUTTONGROUP_H

#include <QWidget>

namespace Ui {
class ButtonGroup;
}

class ButtonGroup : public QWidget
{
    Q_OBJECT

public:
    enum Panel{Start, Player, PassOrPlayer, CallLord, Empaty};
    explicit ButtonGroup(QWidget *parent = nullptr);
    ~ButtonGroup();
    //初始化
    void initButtons();
    // 处理page页切换
    void selectPanel(Panel type, int bet = 0);

signals:
    //开始游戏
    void startGame();
    //出牌
    void playhand();
    //不出牌
    void pass();
    //抢地主
    void betPoint(int bet);


private:
    Ui::ButtonGroup *ui;
};

#endif // BUTTONGROUP_H
